/* 
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

function addRowToVTable()
{
    var tbl = document.getElementById("tblVideos");
    var lastRow = tbl.rows.length;
    var iteration = lastRow;
    var row = tbl.insertRow(lastRow);
  
    // right cell
    var cellLeft = row.insertCell(0);
    var el = document.createElement('input');
    el.type = 'text';
    el.name = 'video' + iteration;
    el.id = 'video' + iteration;
    el.size = 60;
  
    cellLeft.appendChild(el);
    el.value = 'http://www.youtube.com/watch?v=';
}

function addRowToPTable()
{
    var tbl = document.getElementById("tblPictures");
    var lastRow = tbl.rows.length;
    var iteration = lastRow;
    var row = tbl.insertRow(lastRow);
  
    // right cell
    var cellLeft = row.insertCell(0);
    var el = document.createElement('input');
    el.type = 'text';
    el.name = 'pic' + iteration;
    el.id = 'pic' + iteration;
    el.size = 60;
  
    cellLeft.appendChild(el);
    el.value = '';
}
